

class A{
	A(){
		super();
	}
	
	public void f(double d) {
		System.out.println(d * 2);
	}
}

class B extends A{
	B(){
		this("Good evening!");
	}
	B(String s){
		System.out.println(s);
	}
	@Override
	public void f(double d) {
		System.out.println(d * 3);
	}

}

class C extends A{
	C(){
		
	}
	//Overloads
	public void f(String s) {
		System.out.println("Tom, " + s);
	}
}

public class TestOverrideAndOverloads {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new A().f(2.0);
		new B().f(2.0);
		new C().f("good evening!");
	}

}
